Ext.define('HIT.view.MdataClientAddressEditPanel', {
    extend: 'Ext.form.Panel',
    alias: 'widget.mdataclientaddresseditpanel',
    height: 440,
    width: 700,
    overlapHeader: false,
    preventHeader: true,
    autoScroll: true,
    layout: {
        type: 'absolute'
    },
    title: Share.T('修改客户联系方式'),

    initComponent: function() {
        var me = this;
        Ext.applyIf(me, {
            items: [ {

				xtype: 'fieldset',
				height: 220,
				margin: '10 10 10 10',
                padding: '10 10 10 10',
                title: Share.T('客户基本信息设置'),
                layout: {
                    type: 'absolute'
                },
				items: [ {
					xtype: 'hiddenfield',
					id: 'mdata-functionId',
					value: 4
				}, {
                    xtype: 'hiddenfield',
                    id: 'hiddenID',
                    value: -1
				}, {
					xtype: 'textfield',
					tabIndex:1,
					x: 10,
					y: 20,
					width:234,
					maxLength : 200,
					id:'mdata-client-recvcompany-edit',
					fieldLabel: Share.T('收件公司名称'),
	                emptyText: Share.T('请输入收件公司名称'),
	                msgTarget  : 'side'
				}, {
					xtype: 'textfield',
					tabIndex:2,
					x: 270,
					y: 20,
					width:324,
					maxLength : 50,
					id:'mdata-client-recvman-edit',
					fieldLabel: Share.T('发票收件人'),
                    allowBlank: false,
                    blankText: Share.T('发票收件人不能为空'),
                    emptyText: Share.T('请输入发票收件人'),
	                msgTarget  : 'side'
				}, {
					xtype: 'textfield',
					tabIndex:3,
					x: 10,
					y: 60,
					width:234,
					maxLength : 30,
					id:'mdata-client-recvtel-edit',
					fieldLabel: Share.T('收件单位电话'),
	                emptyText: Share.T('请输入收件单位电话'),
	                regex: /^\d(\d|-)*\d$/,
	                regexText: Share.T('请输入有效的电话号码'),
	                msgTarget  : 'side'
				}, {
					xtype: 'textfield',
					tabIndex:4,
					x: 270,
					y: 60,
					width:324,
					maxLength : 100,
					regex: /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,4}$/,
					regexText:"请输入正确的邮箱地址",
					msgTarget  : 'side',
					id:'mdata-client-email-edit',
					fieldLabel: Share.T('收件人邮箱'),
	                emptyText: Share.T('请输入收件人邮箱'),
	                msgTarget  : 'side'
				}, {
					xtype: 'textfield',
					tabIndex:5,
					x: 10,
					y: 100,
					width:234,
					maxLength : 30,
					id:'mdata-client-city-edit',
					fieldLabel: Share.T('城市'),
	                emptyText: Share.T('请输入城市'),
	                msgTarget  : 'side'
				}, {
					xtype: 'textfield',
					tabIndex:6,
					x: 270,
					y: 100,
					width:324,
					maxLength : 100,
					id:'mdata-client-recvaddress-edit',
					fieldLabel: Share.T('收件人地址'),
	                emptyText: Share.T('请输入收件人地址'),
	                msgTarget  : 'side'
				}, {
					xtype: 'textfield',
					tabIndex:7,
					x: 10,
					y: 140,
					width:234,
					maxLength : 30,
					regex: /^\d{11}$/,
					regexText:"请填入正确的手机",
					msgTarget  : 'side',
					id:'mdata-client-phone-number-edit',
					fieldLabel: Share.T('联系人手机'),
	                emptyText: Share.T('请输入联系人手机'),
	                msgTarget  : 'side'
				}, {
					xtype: 'textfield',
					tabIndex:8,
					x: 270,
					y: 140,
					width:324,
					maxLength : 500,
					id:'mdata-client-recvremark-edit',
					fieldLabel: Share.T('备注'),
	                emptyText: Share.T('请输入备注'),
	                msgTarget  : 'side'
				} ]
            }, {
				xtype: 'fieldset',
				height: 180,
				y:240,
				margin: '10 10 10 10',
                padding: '10 10 10 10',
                title: Share.T('客户附加信息设置'),
                layout: {
                    type: 'absolute'
                },
				items: [ {
					xtype: 'textfield',
					tabIndex:9,
					x: 10,
					y: 20,
					width:234,
					maxLength : 200,
					id:'mdata-client-recvck01-edit',
					fieldLabel: Share.T('参考字段1'),
	                emptyText: Share.T('请输入参考字段1'),
	                msgTarget  : 'side'
				}, {
					xtype: 'textfield',
					tabIndex:10,
					x: 270,
					y: 20,
					width:234,
					maxLength : 200,
					id:'mdata-client-recvck02-edit',
					fieldLabel: Share.T('参考字段2'),
	                emptyText: Share.T('请输入参考字段2'),
	                msgTarget  : 'side'
				}, {
					xtype: 'textfield',
					tabIndex:11,
					x: 10,
					y: 60,
					width:234,
					maxLength : 200,
					id:'mdata-client-recvck03-edit',
					fieldLabel: Share.T('参考字段3'),
	                emptyText: Share.T('请输入参考字段3'),
	                msgTarget  : 'side'
				}, {
					xtype: 'textfield',
					tabIndex:12,
					x: 270,
					y: 60,
					width:234,
					maxLength : 200,
					id:'mdata-client-recvck04-edit',
					fieldLabel: Share.T('参考字段4'),
	                emptyText: Share.T('请输入参考字段4'),
	                msgTarget  : 'side'
				}, {
					xtype: 'textfield',
					tabIndex:13,
					x: 10,
					y: 100,
					width:234,
					maxLength : 200,
					id:'mdata-client-recvck05-edit',
					fieldLabel: Share.T('参考字段5'),
	                emptyText: Share.T('请输入参考字段5'),
	                msgTarget  : 'side'
				} ]
            } ]
        });
        me.callParent(arguments);
    }
});